package com.shatower.chatctrl.dao.service.impl;

import com.shatower.chatctrl.dao.mapper.UserMapper;
import com.shatower.chatctrl.dao.pojo.User;
import com.shatower.chatctrl.dao.pojo.UserExample;
import com.shatower.chatctrl.dao.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by hhggccll on 2017/10/15.
 */
@Service("userService")
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;
    @Override
    public int insertSelective(User record) {
        return userMapper.insertSelective(record);
    }

    @Override
    public int countByExample(UserExample example) {
        return userMapper.countByExample(example);
    }
}
